<?php

/**
 * Class Involved_VideoModel
 */
class Involved_VerifyModel extends BaseModel{

    protected $table = 'verify';

    /**
     * 获取商家审核状态
     * @param $supplier_id
     * @param $state
     * @return mixed
     */
    public function checkSupplier($supplier_id, $state)
    {
        return  DB::table($this->table)->where(['supplier_id' => $supplier_id, 'state' => $state])->count();
    }
}